{* Smarty *}
<form action="javascript:void(null)" method="post" onsubmit="ajax_process_form('{$smarty.const.MODULE_EXPERIMENT}', '{$smarty.const.EXPERIMENT_ACTION_NEXT_STEP}', xajax.getFormValues(this)); return false;">
<div class="header">
	New experiment
</div>
<div>
	<fieldset>
		<legend>
			<span class="legend">
				<input type="checkbox" name="window" value="cheked"/>
				Window
			</span>
		</legend>
		<div>
			Length
			<input type="text" name="length" value=""/>
		</div>
		<div style="margin-top: 5px; margin-left: 15px;">
			Step
			<input type="text" name="step" value=""/>
		</div>
	</fieldset>
</div>
<div>
	<fieldset>
		<legend>
			<span class="legend">
				<input type="radio" name="exp" value="markov"/>
				Markov chains
			</span>
		</legend>
		<div>
			Markov Chain Rang
			<input type="text" name="markov_chain_rang" value=""/>
		</div>
		<div>
			Generate Chains Count
			<input type="text" name="generate_chains_count" value=""/>
		</div>
		<div>
			Length Of Chains
			<input type="text" name="length_of_chains" value=""/>
		</div>
		<div>
			Pre Changes
			<select name="pre_changes">
				<option value="None">None</option>
				<option value="Cycle">Cycle</option>
				<option value="CycleBuilding">CycleBuilding</option>
			</select>
		</div>
		<div>
			Method
			<select name="method">
					<option value="Uniform">Uniform</option>
					<option value="NotUniform">NotUniform</option>
			</select>
		</div>
		<div>	
			Generator
			<select name="generator">
					<option value="SimpleGenerator">SimpleGenerator</option>
			</select>
		</div>	
</div>
<div>
	<fieldset>
		<legend>
			<span class="legend">
				<input type="radio" name="exp" value="matrix"/>
				Matrix experiment
			</span>
		</legend>
			<select name="Matrix">
				<option value="1">Первый</option>
				<option value="2">Второй</option>
			</select>
	</fieldset>
</div>
<div>
	<fieldset>
		<legend>
			<span class="legend">
				Alphabet
			</span>
		</legend>
		<fieldset>
			<legend>
				<span>
					<input type="radio" name="alphabet" value="exist"/>
					Use exists
				</span>
			</legend>
			<select name="alphabets">
				<option value="1">Первый</option>
				<option value="2">Второй</option>
			</select>
		</fieldset>
		<fieldset>
			<legend>
				<span>
					<input type="radio" name="alphabet" value="create"/>
					Create new
				</span>
			</legend>
			<select name="methods">
				<option value="1">Первый</option>
				<option value="2">Второй</option>
			</select>
				<div>
					<input type="radio" name="priority"/>
					Tiny
				</div>
				<div>
					<input type="radio" name="priority"/>
					Long
				</div>
		</fieldset>
	</fieldset>
</div>
<div>
	<fieldset>
		<legend>
			<span class="legend">
				Data
			</span>
		</legend>
		<div id="add_to_table">
		</div>
		<input type="button" name="add" value="ADD" onclick="ajax_switch_content('{$smarty.const.MODULE_EXPERIMENT}', '{$smarty.const.EXPERIMENT_ACTION_ADD_OBJECT_TYPE}', 'NULL');" />
		<!--TODO: MOdifikacia polei tablici I udalenie --> 
		{*<input type="button" name="choose" value="Choose colums" onclick="open_popup('{url module=$smarty.const.MODULE_EXPERIMENT action=$smarty.const.EXPERIMENT_ACTION_CHOOSE_COLUMS target='Sequence_id'}', 200, 200); return false;" />*}
		<table border="1" id="sequence_table">
			<tbody>
			<tr>
				<td>Id</td>
				<td>dg</td>
				<td>G</td>
				<td>da</td>
				<td>t</td>
				<td>M1</td>
				<td>M2</td>
				<td>M3</td>
				<td>M4</td>
				<td>M5</td>
				<td>M6</td>
				<td>M7</td>
				<td>Vi</td>
				<td>Di</td>
				<td>CKOi</td>
				<td>M3i</td>
				<td>Assimetryi</td>
				<td>M4i</td>
				<td>Exsessi</td>
			</tr>
			</tbody>
		</table>
	</fieldset>
</div>
<div id ="process">
	<input type="button" name="back" value="Cancel" onclick="document.location.href='{url module=$MODULE action=$smarty.const.EXPERIMENT_ACTION_CANCEL}';" />
	<input type="submit" name="go" value="Next"/>
</div>
</form>